package com.next

class RiskWarningConfigRule
{

    String name
    Component component
    String description

    Integer priority

    static belongsTo = [riskWarningConfig: RiskWarningConfig]

    static constraints =
        {
            name maxSize: 50, blank: false, unique: true
            priority nullable: false, blank: false
            priority unique: ['riskWarningConfig']
            description maxSize: 200
        }
}